package pers.duorhs.common.config;

import io.swagger.v3.oas.models.ExternalDocumentation;
import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.info.License;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Duorhs
 * @date 2022/5/7 14:37
 */
@Configuration
public class ApiDocConfig {
    @Bean
    public OpenAPI mallTinyOpenAPI() {
        return new OpenAPI().info(new Info().title("Mall-Tiny API").description("SpringDoc API 演示").version("v1.0.0").license(new License().name("Apache 2.0").url(""))).externalDocs(new ExternalDocumentation().description("").url(""));
    }
}